package com.lab.book.sharding.entity;

import java.io.Serializable;

public class User implements Serializable {

	private static final long serialVersionUID = 263434701950670170L;

	private int userId;

	private String userName;

	private String userNamePlain;

	private String pwd;

	private String assistedQueryPwd;

	public int getUserId() {
		return userId;
	}

	public void setUserId(final int userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(final String userName) {
		this.userName = userName;
	}

	public String getUserNamePlain() {
		return userNamePlain;
	}

	public void setUserNamePlain(final String userNamePlain) {
		this.userNamePlain = userNamePlain;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(final String pwd) {
		this.pwd = pwd;
	}

	public String getAssistedQueryPwd() {
		return assistedQueryPwd;
	}

	public void setAssistedQueryPwd(final String assistedQueryPwd) {
		this.assistedQueryPwd = assistedQueryPwd;
	}

	@Override
	public String toString() {
		return String.format("user_id: %d, user_name: %s, user_name_plain: %s, pwd: %s, assisted_query_pwd: %s", userId,
				userName, userNamePlain, pwd, assistedQueryPwd);
	}
}